<{include file="public/header.html"}> 
<script src="/static/public/jquery.pagination.js" type="text/javascript" charset="utf-8"></script>
		<!--main部分-->
		<div class="x-main-upper w1180-con">
			<!--main--左边--logo/tab-->
			<{include file="public/user_nav.html"}> 
				<!--main--右边--banner-->
				<div class="main-right">
					<div class="mright-content">
						<!--头像、昵称、等级-->
						<{include file="public/user_top.html"}> 			
						<div class="clear"></div>
						<!--夺宝记录-->
						<div class="cash66">
							<div class="title">
								<div class="vertical"></div>
								<p class="title66">参与记录</p>
								<!--日期选择-->
							</div>
							<div class="user-con fl">
								<div class="acc-duobao overhide bjf">
									<div class="p15">
										<ol class="acc-tab">
                                                                                    <li <{if $type == 1}>class="tab_on"<{/if}>><a href="<{eval url('user/duobao')}>">参与中<i></i><b></b></a></li>
                                                                                    <li <{if $type == 2}>class="tab_on"<{/if}>><a href="<{eval url('user/publish')}>">已揭晓<i></i><b></b></a></li>
                                                                                    <li <{if $type == 3}>class="tab_on"<{/if}>><a href="<{eval url('user/winner')}>">中奖记录<i></i><b></b></a></li>
                                                                                    <div class="clear"></div>
										</ol>
									  <div class="tab_contain">
										<div class="acc-list">
											<!--夺宝中-->
                                                                                    <{if $list}>
                                                                                    <table class="indianaed">
                                                                                            <tr>
                                                                                                    <th class="tl">&nbsp;&nbsp;&nbsp;&nbsp;商品信息</th>
                                                                                                    <th>期号</th>
                                                                                                    <th>参与人次</th>
                                                                                                    <th>夺宝状态</th>
                                                                                                    <th>操作</th>
                                                                                            </tr>
                                                                                            <{foreach from=$list item=val}>
                                                                                            <tr>
                                                                                                    <td class="min-w345">
                                                                                                        <img src="<{$val['thumb']}>" />
                                                                                                        <div class="duobao-goods">
                                                                                                            <h5><{$val['title']}></h5>
                                                                                                            <span>总需：<span><{$val['zongrenshu']}></span>人次</span>
                                                                                                            <div class="loadbox mt5 mb5" >
                                                                                                                <dl class="barbox mt5">
                                                                                                                    <dd class="barline">
                                                                                                                        <div data-current="<{$val['canyurenshu']}>" data-total="<{$val['zongrenshu']}>" style="width:100%;" class="charts"></div>
                                                                                                                    </dd>
                                                                                                                </dl>
                                                                                                            </div>
                                                                                                            <{if $val['q_showtime'] == "Y"}>
                                                                                                            <span class="publish-time">幸运伙伴揭晓中...</span>
                                                                                                            <{else}>
                                                                                                            <span class="publish-time">已完成<span><{$val['percent']}></span>，剩余<span><{$val['shengyurenshu']}></span></span>
                                                                                                            <{/if}>
                                                                                                        </div>
                                                                                                        <div class="clear"></div>
                                                                                                    </td>
                                                                                                    <td>第<{$val['shopqishu']}>期</td>
                                                                                                    <td><{$val['user_canyurenshu']}></td>
                                                                                                    <td class="green">进行中</td>
                                                                                                    <td>
                                                                                                        <a href="<{$val['lottery_url']}>" target="_blank" class="see-detail duobao-btn btn-hover">查看详情</a><br />
                                                                                                        <em class="font-blue see-code" data-sid="<{$val['shopid']}>">查看幸运号</em>
                                                                                                    </td>
                                                                                            </tr>
                                                                                            <{/foreach}>
											</table>
                                                                                        <{else}>
											<div class="load-more mtb20">
												<img src="<{$style_dir}>/img/no-trade.png" />
											</div>
                                                                                        <{/if}>
										</div>
                                                                              <div class="mt15 tc">
                                                                                  <{$showPage}>
                                                                              </div>
									  </div>
									</div>
								</div>
							</div>						
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
                <{include file="user/code_pop.html"}>
		<!--footer-->
<{include file="public/footer.html"}>
	<script language="javascript">
	$(function(){
		var charts = $(".charts");
		function animate(){
			charts.each(function(i,item){
                                var f=parseFloat($(item).attr("data-current"));
				var a=((f/$(item).attr("data-total")).toFixed(2))*100;
				$(item).animate({
					width: a+"%"
				},1000);
			});
		}
		animate();
	})

	</script>